package com.lfy.modules.blog.domain.dto;

import com.lfy.modules.blog.domain.group.SaveGroup;
import com.lfy.modules.blog.domain.group.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

public class MoodDTO {
    /**
     *
     */
    @NotNull(message = "id不能为空",groups = {UpdateGroup.class})
    @Null(message = "id必须为空",groups = {SaveGroup.class})
    private Long id;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空",groups = {SaveGroup.class})
    private String content;

    /**
     * 状态：0-发布中；1-隐藏
     */
    @NotNull(message = "状态不能为空",groups = {SaveGroup.class})
    private Integer status;

    /**
     * 排序
     */
    private Integer sortNum;

    /**
     * 是否置顶：0-否；1-是
     */
    @NotNull(message = "是否置顶不能为空",groups = {SaveGroup.class})
    private Integer isTop;
}
